import request from '../utils/request'

// 创建课程
export const createCourse = (course) => {
    return request({
        url:'/system/course/createCourse',
        method:'post',
        data:course,
    })
}

// 获取课程列表
export const getCourseList = (userType,userId) => {
    return request({
        url:'/system/course/getCourseList',
        method:'get',
        params:{
            userType,
            userId
        }
    })
}

// 创建班级
export const createClazz = (clazz) => {
    return request({
        url:'/system/clazz/createClazz',
        method:'post',
        data:clazz
    })
}